#pragma once
#include <string>
#include <vector>
#pragma comment(lib, "Netapi32.lib")

class Account
{
public:
	Account();
	~Account();
	
	CString m_StrUserName;
	CString m_StrPassword;
	CString m_StrFullName;
	CString m_StrDescription;
	CString m_StrGroup;
	int iType;
};

class AccountManager
{
protected:
	std::vector<Account*> m_lstAccount;

public:
	AccountManager();
	~AccountManager();
	
	int CreateAccount(Account *account,CString groupName);
	int DeleteAccount(Account* account);
	std::vector<Account*> GetAccountList();
	std::vector<Account*> GetGroupAccountList(CString groupName);
	int ChangeAccountInfo(Account* account);
	bool ChangeGroup(CString username, CString groupName);
	Account GetUserInfo(CString username);
	CString getGroupName(CString username);

};
